package com.skyhub.service;

import com.skyhub.common.domain.dto.HeatMap;
import com.skyhub.common.domain.pojo.Article;
import com.skyhub.common.domain.pojo.ArticleSeries;
import com.skyhub.common.domain.pojo.SystemMessage;
import com.skyhub.common.domain.pojo.User;

import java.util.List;

public interface HomeService {

    List<Article>ArticleList();

    User getUserNameByseriesId(Integer seriesId);

    Article getArticleById(Integer id);

    List<SystemMessage>systemMessageList(Integer id);

    List<Article>getArticleBySeriesId(Integer seriesId);

    ArticleSeries getArticleSeriesById(Integer id);

    List<ArticleSeries>getArticleSeriesListByUserId(Integer userId);

    void DeleteArticleById(Integer id,Integer userId);

    void DeleteArticleSeriesById(Integer id,Integer userId);

    List<Article>GetAllArticle(Integer userId);

    String parseCard(Integer userId, Integer seriesId);

    public List<Article>latestArticles(Integer userId);

    public List<HeatMap>heatMap(Integer userId);

    public void addAccessCount(Integer articleId);

    public void ThumbsUpTheArticle(Integer articleId,Integer userId);

    public void removeThumbsUpTheArticle(Integer articleId,Integer userId);

    public List<Article>getRecords(Integer userId);

    public List<Article>hotsArticle();
}
